pp108 : searchPath Property (Download)

searchPath Property (Download)

String that denotes the tag in the SOAP response, the content of which needs to be downloaded.

Syntax

Inline HTML

<div cordysType="wcp.library.util.Download" searchPath=sXPath />

Event property

downloadID.searchPath = sXPath

Parameters

Parameter

Description

sXPath

String that denotes the valid XPath of the XML content which has to be downloaded.

Remarks

The XPath supplied for this component contains expressions that can address parts of an XML document, and can match a set of nodes in the document. The XPath expression is case-sensitive.
The XPath specified for this component appears in the form of the tag name which contains the content that is to be downloaded. Consider the following XML document which is the response received from the back end, for the request of getting the Photo from the Employees database:

<GetPhotoResponse xmlns="http://schemas.cordys.com/1.0/demo/northwind"> 
   <tuple> 
       <old> 
           <Employees> 
               <EmployeeID>1</EmployeeID>
               <Photo>Base 64 encoded XML content...</Photo>
           </Employees> 
       </old> 
   </tuple> 
</GetPhotoResponse>
Since the photo field is coming inside the <Photo> tag, the XPath here can be <Photo>.
If the XML content contains replications or duplicates of the same tag as in the following example, then the XPath can be given as the absolute path of the XML content:
<GetIconResponse xmlns="http://schemas.cordys.com/1.0/demo/northwind"> 
   <tuple> 
       <old> 
           <TreeItem> 
               <searchPath>1</searchPath>
               <icon>Base 64 encoded XML content...</icon>
               <icons>
                   <icon>Base 64 encoded XML content...</icon>
                   <icon>Base 64 encoded XML content...</icon>
                   <openIcon>Base 64 encoded XML content...</openIcon>
               </icons>
           </TreeItem> 
      </old> 
  </tuple> 
</GetIconResponse>

In this case, to retrieve the <icon> the XPath will be <tuple><old><icons><icon>.

See Also

download